/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.carbons.impl;

import za.ac.cput.carbons.carbons.CarbonEmission;

/**
 *
 * @author Zeus
 */
public class ViolateSRPTruckCarbonImpl implements CarbonEmission {

    private double mileage = 100;

    @Override
    public double carbonize(double num1, double num2) {
        return num1 * 2 * num2;
    }
    //VIOLATING SRP BY CREATING METHOD THAT DOES NOT CORRESPOND WITH CLASS
    public void serviceCar() {
        mileage = mileage-50;
    }
}
